package io.lckgroup.modules.lck.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.lckgroup.modules.lck.entity.ShopFoodEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lckgroup.modules.lck.entity.appvo.ShopFoodEntityVo;
import io.lckgroup.modules.lck.form.wxgzh.ShopFoodWxgzhForm;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 菜品表
 *
 * @author srq
 * @email siruiqi@siruiqi.com
 * @date 2020-01-19 19:14:39
 */
@Mapper
@Repository("shopFoodDao")
public interface ShopFoodDao extends BaseMapper<ShopFoodEntity> {

    void AuditShopFood(ShopFoodEntity shopFoodEntity);

    void PassAuditBatchShopFood(Long[] foodId);

    List<ShopFoodEntity> selectFoodName(long id);

    //自定义分页查询
    IPage<ShopFoodEntityVo> queryPageByDefine(Page<?> page, Map<String, Object> params);

    IPage<ShopFoodWxgzhForm> queryByPage(Page page);
}
